﻿using System;

namespace KelonProud.Extensions
{
   public static class ExceptionExtensions
    {
        public static string GetTrueMessage(this Exception exception)
        {
                while (exception.InnerException != null)
                {
                    exception = exception.InnerException;
                }

                return exception.Message;
        }
    }
}
